package com.hl.qzzpbackend.model.dto.user;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 获取邮箱验证码请求类
 * @author helong
 */
@Data
@ApiModel(value = "获取邮箱验证码请求类")
public class UserGetEmailCodeRequest implements Serializable {

    @NotBlank(message = "邮箱不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$")
    @ApiModelProperty(value = "邮箱")
    private String email;

    @NotNull(message = "发送邮箱验证码类型不能为空")
    @ApiModelProperty(value = "发送邮箱验证码类型")
    private Integer sendEmailType;

}
